<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }

        body {
            width: 100vh;
            height: 100vh;
            background-color: #149bda;
            cursor: none;
        }

        img {
            width: 30px;
            height: 30px;
            position: fixed;
            border-radius: 50%;
            background-color: #d44444;
        }
    </style>
</head>

<body>
    <img src="https://s1.ax1x.com/2020/08/07/a8fj3D.png" alt="">
    <script>
        document.onmousemove = function (e) {
            var x = e.clientX;
            var y = e.clientY;
            var img = document.querySelector('img');
            img.style.left = x + 'px';
            img.style.top = y + 'px';
            console.log(x, y);
        }
    </script>
</body>

</html>